/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jpa.entities;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 *
 * @author Usuario
 */
@Entity
@Table(name = "cuotas", catalog = "Sig", schema = "")
@NamedQueries({
    @NamedQuery(name = "Cuotas.findAll", query = "SELECT c FROM Cuotas c"),
    @NamedQuery(name = "Cuotas.findByIdCuotas", query = "SELECT c FROM Cuotas c WHERE c.idCuotas = :idCuotas"),
    @NamedQuery(name = "Cuotas.findByRecargo1", query = "SELECT c FROM Cuotas c WHERE c.recargo1 = :recargo1"),
    @NamedQuery(name = "Cuotas.findByRecargo2", query = "SELECT c FROM Cuotas c WHERE c.recargo2 = :recargo2"),
    @NamedQuery(name = "Cuotas.findByRecargo3", query = "SELECT c FROM Cuotas c WHERE c.recargo3 = :recargo3"),
    @NamedQuery(name = "Cuotas.findByRecargo4", query = "SELECT c FROM Cuotas c WHERE c.recargo4 = :recargo4"),
    @NamedQuery(name = "Cuotas.findByRecargo5", query = "SELECT c FROM Cuotas c WHERE c.recargo5 = :recargo5"),
    @NamedQuery(name = "Cuotas.findByRecargo6", query = "SELECT c FROM Cuotas c WHERE c.recargo6 = :recargo6"),
    @NamedQuery(name = "Cuotas.findByRecargo7", query = "SELECT c FROM Cuotas c WHERE c.recargo7 = :recargo7"),
    @NamedQuery(name = "Cuotas.findByRecargo8", query = "SELECT c FROM Cuotas c WHERE c.recargo8 = :recargo8"),
    @NamedQuery(name = "Cuotas.findByRecargo9", query = "SELECT c FROM Cuotas c WHERE c.recargo9 = :recargo9"),
    @NamedQuery(name = "Cuotas.findByRecargo10", query = "SELECT c FROM Cuotas c WHERE c.recargo10 = :recargo10"),
    @NamedQuery(name = "Cuotas.findByRecargo11", query = "SELECT c FROM Cuotas c WHERE c.recargo11 = :recargo11"),
    @NamedQuery(name = "Cuotas.findByRecargo12", query = "SELECT c FROM Cuotas c WHERE c.recargo12 = :recargo12")})
public class Cuotas implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "idCuotas", nullable = false)
    private Integer idCuotas;
    @Basic(optional = false)
    @Column(name = "recargo1", nullable = false)
    private int recargo1;
    @Basic(optional = false)
    @Column(name = "recargo2", nullable = false)
    private int recargo2;
    @Basic(optional = false)
    @Column(name = "recargo3", nullable = false)
    private int recargo3;
    @Basic(optional = false)
    @Column(name = "recargo4", nullable = false)
    private int recargo4;
    @Basic(optional = false)
    @Column(name = "recargo5", nullable = false)
    private int recargo5;
    @Basic(optional = false)
    @Column(name = "recargo6", nullable = false)
    private int recargo6;
    @Basic(optional = false)
    @Column(name = "recargo7", nullable = false)
    private int recargo7;
    @Basic(optional = false)
    @Column(name = "recargo8", nullable = false)
    private int recargo8;
    @Basic(optional = false)
    @Column(name = "recargo9", nullable = false)
    private int recargo9;
    @Basic(optional = false)
    @Column(name = "recargo10", nullable = false)
    private int recargo10;
    @Basic(optional = false)
    @Column(name = "recargo11", nullable = false)
    private int recargo11;
    @Basic(optional = false)
    @Column(name = "recargo12", nullable = false)
    private int recargo12;
    @JoinColumn(name = "idCuotas", referencedColumnName = "idTarjeta", nullable = false, insertable = false, updatable = false)
    @OneToOne(optional = false)
    private Tarjeta tarjeta;

    public Cuotas() {
    }

    public Cuotas(Integer idCuotas) {
        this.idCuotas = idCuotas;
    }

    public Cuotas(Integer idCuotas, int recargo1, int recargo2, int recargo3, int recargo4, int recargo5, int recargo6, int recargo7, int recargo8, int recargo9, int recargo10, int recargo11, int recargo12) {
        this.idCuotas = idCuotas;
        this.recargo1 = recargo1;
        this.recargo2 = recargo2;
        this.recargo3 = recargo3;
        this.recargo4 = recargo4;
        this.recargo5 = recargo5;
        this.recargo6 = recargo6;
        this.recargo7 = recargo7;
        this.recargo8 = recargo8;
        this.recargo9 = recargo9;
        this.recargo10 = recargo10;
        this.recargo11 = recargo11;
        this.recargo12 = recargo12;
    }

    public Integer getIdCuotas() {
        return idCuotas;
    }

    public void setIdCuotas(Integer idCuotas) {
        this.idCuotas = idCuotas;
    }

    public int getRecargo1() {
        return recargo1;
    }

    public void setRecargo1(int recargo1) {
        this.recargo1 = recargo1;
    }

    public int getRecargo2() {
        return recargo2;
    }

    public void setRecargo2(int recargo2) {
        this.recargo2 = recargo2;
    }

    public int getRecargo3() {
        return recargo3;
    }

    public void setRecargo3(int recargo3) {
        this.recargo3 = recargo3;
    }

    public int getRecargo4() {
        return recargo4;
    }

    public void setRecargo4(int recargo4) {
        this.recargo4 = recargo4;
    }

    public int getRecargo5() {
        return recargo5;
    }

    public void setRecargo5(int recargo5) {
        this.recargo5 = recargo5;
    }

    public int getRecargo6() {
        return recargo6;
    }

    public void setRecargo6(int recargo6) {
        this.recargo6 = recargo6;
    }

    public int getRecargo7() {
        return recargo7;
    }

    public void setRecargo7(int recargo7) {
        this.recargo7 = recargo7;
    }

    public int getRecargo8() {
        return recargo8;
    }

    public void setRecargo8(int recargo8) {
        this.recargo8 = recargo8;
    }

    public int getRecargo9() {
        return recargo9;
    }

    public void setRecargo9(int recargo9) {
        this.recargo9 = recargo9;
    }

    public int getRecargo10() {
        return recargo10;
    }

    public void setRecargo10(int recargo10) {
        this.recargo10 = recargo10;
    }

    public int getRecargo11() {
        return recargo11;
    }

    public void setRecargo11(int recargo11) {
        this.recargo11 = recargo11;
    }

    public int getRecargo12() {
        return recargo12;
    }

    public void setRecargo12(int recargo12) {
        this.recargo12 = recargo12;
    }

    public Tarjeta getTarjeta() {
        return tarjeta;
    }

    public void setTarjeta(Tarjeta tarjeta) {
        this.tarjeta = tarjeta;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idCuotas != null ? idCuotas.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Cuotas)) {
            return false;
        }
        Cuotas other = (Cuotas) object;
        if ((this.idCuotas == null && other.idCuotas != null) || (this.idCuotas != null && !this.idCuotas.equals(other.idCuotas))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entities.Cuotas[idCuotas=" + idCuotas + "]";
    }

}
